home *** CD-ROM | disk | FTP | other *** search
Makefile | 1992-03-04 | 2.4 KB | 106 lines |
- #----------------------------------------------------------------------------
- #
- # NSSDC/CDF Borland C/C++ makefile for the CDF test programs.
- #
- # Version 1.0, 24-Feb-92, Hughes STX
- #
- # Modification history:
- #
- # V1.0 24-Feb-92, J Love Original version.
- #
- #----------------------------------------------------------------------------
-
- .AUTODEPEND
-
- #----------------------------------------------------------------------------
- # Macros.
- #----------------------------------------------------------------------------
-
- MODEL= l
-
- CFLAGS= -c -m$(MODEL) -w -w-sig -w-cln -g1 -j1
-
- CC= bcc
- LINK= tlink
-
- C0= c0$(MODEL)
- FPL= emu
- MATHL= math$(MODEL)
- CRTL= c$(MODEL)
-
- INCLUDEsys = $(CCLOC)\include
- LIBsys= $(CCLOC)\lib
-
- INCLUDEcdf= ..\include
- LIBcdf= ..\lib
-
- CDF_h= $(INCLUDEcdf)/cdf.h
-
- QST2Cobjs= qst2c.obj
- QST2ICobjs= qst2ic.obj
-
- #----------------------------------------------------------------------------
- # Targets/dependencies.
- #----------------------------------------------------------------------------
-
- all: qst2c.exe qst2ic.exe
-
- qst2c.exe: $(QST2Cobjs) $(LIBcdf)\libcdf.lib \
- tlink.cfg qst2c.rsp library.rsp
- $(LINK) $(C0) @qst2c.rsp, qst2c.exe,, @library.rsp,
-
- qst2ic.exe: $(QST2ICobjs) $(LIBcdf)\libcdf.lib \
- tlink.cfg qst2ic.rsp library.rsp
- $(LINK) $(C0) @qst2ic.rsp, qst2ic.exe,, @library.rsp,
-
- .c.obj:
- $(CC) $(CFLAGS) -I$(INCLUDEsys) -I$(INCLUDEcdf) $<
-
- qst2c.obj: $(CDF_h)
- qst2ic.obj: $(CDF_h)
-
- #----------------------------------------------------------------------------
- # TLINK configuration file.
- #----------------------------------------------------------------------------
-
- tlink.cfg: makefile.bc
- copy &&|
- /v
- /x
- /c
- /P-
- /L$(LIBsys)
- | tlink.cfg
-
- #----------------------------------------------------------------------------
- # Object module response files.
- #----------------------------------------------------------------------------
-
- qst2c.rsp: makefile.bc
- copy &&|
- $(QST2Cobjs)
- | qst2c.rsp
-
- qst2ic.rsp: makefile.bc
- copy &&|
- $(QST2ICobjs)
- | qst2ic.rsp
-
- #----------------------------------------------------------------------------
- # Object library response file.
- #----------------------------------------------------------------------------
-
- library.rsp: makefile.bc
- copy &&|
- $(LIBcdf)\libcdf.lib $(FPL) $(MATHL) $(CRTL)
- | library.rsp
-
- #----------------------------------------------------------------------------
- # Clean up.
- #----------------------------------------------------------------------------
-
- clean:
- del *.obj
- del *.exe
- del *.bak
-